#ifndef SettingsLayer_H
#define SettingsLayer_H
#include "cocos2d.h"
#include "global.h"
using namespace cocos2d;
class SettingsLayer: public  CCLayer{
public :
	CCMenuItemToggle* item1;
	CCMenuItemToggle* item2;
	virtual bool init();
    CREATE_FUNC(SettingsLayer);
	void backCallback(CCObject *pSender);// {
//        var scene = CCScene.node();
//        scene.addChild(SysMenu.node());
//        CCDirector.sharedDirector().replaceScene(CCTransitionFade.transitionWithDuration(1.2, scene));
//    }
	void soundControl(CCObject *p);
//        global.sound = global.sound ? false : true;
//        if(!global.sound){
//            CCAudioManager.sharedEngine().end();
//        }
//    }
	void    modeControl(CCObject *p);
//    }
	//static CCLayer* node();
};
#endif